package com.ibm.test.utils;

import com.ibm.test.control.TestCase;
import com.ibm.test.pojo.TestResult;


public class Tools {
	public static String assembleReport(TestCase tc, TestResult tr) {
		return "<tr style = 'background-color:"
				+ (tr.isPass() ? "green" : "red") + "'>" + "<td>"
				+ tc.getTestcaseId() + "</td>" + "<td>" + tc.getTestcaseName()
				+ "</td>" + "<td>" + tr.isPass() + "</td>" + "<td>"
				+ tr.getContent() + "</td>" + "</tr>";

	}

	public static void generateReport(String reportPath, String reportContent) {
		// TODO
	}

}
